import request from '@/server/index'

// 刷新token
export const refreshToken = () =>
  request.post({
    url: 'sso/keepSignature',
  })

// 登陆
export const loginUser = (param: string) =>
  request.get({
    url: '/user/login' + param,
  })

// 查询记录

export const queryRecord = (params: string) =>
  request.get({
    url: '/market/find' + params,
  })
//添加记录
export const addRecord = (params: object) =>
  request.post({
    url: '/market/add',
    data: params,
  })
//删除记录
export const removeRecord = (params: object) =>
  request.post({
    url: '/market/delete',
    data: params,
  })
